<template>
<div class="">
    <div class="pr10">
        <div class="analyItem">
            <p class="analyItemTit tx-center">状态</p>
            <div class="analyItemCon">

            </div>
        </div>
    </div>
    <div class="thinScroll pr10" v-scrollHeight="84">
        <router-link tag="div" :to="{path:routerPath('base')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">基础</p>
            <div class="analyItemCon">
                    <p class="col-md-4">
                    <span class="cLightGray pr8">姓名</span>
                    <span class="">{{userInfo.storekeeper}}</span>
                </p>
                    <p class="col-md-4">
                    <span class="cLightGray pr8">电话</span>
                     <span class="">{{userInfo.loginPhone}}</span>
                </p>
                 <p class="col-md-4">
                    <span class="cLightGray pr8">入职时间</span>
                     <span class="">{{userInfo.inductionDate}}</span>
                </p>
            </div>
        </router-link>
        <router-link tag="div" :to="{path:routerPath('description')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">个人简介</p>
            <div class="analyItemCon">

            </div>
        </router-link>
            <router-link tag="div" :to="{path:routerPath('process')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">过程</p>
            <div class="analyItemCon">

            </div>
        </router-link>
         <router-link tag="div" :to="{path:routerPath('result')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">结果</p>
            <div class="analyItemCon">

            </div>
        </router-link>
        <router-link tag="div" :to="{path:routerPath('zhengshu')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">证书</p>
            <div class="analyItemCon">

            </div>
        </router-link>
        <router-link tag="div" :to="{path:routerPath('type') }" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">类型</p>
            <div class="analyItemCon">

            </div>
        </router-link>

        <router-link tag="div" :to="{path:routerPath('mien')}" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">代表作品</p>
            <div class="analyItemCon">

            </div>
        </router-link>
    </div>
    <div class="pr10">
        <router-link tag="div" :to="routerPath('hander')" class="analyItem anItemBor" active-class="anItemBor-active">
            <p class="analyItemTit tx-center">处理</p>
            <div class="analyItemCon">
            </div>
        </router-link>
    </div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import { findPushInfoByUid } from '../Resources/Api/index'
export default {
    data () {
        return {
            userInfo: {}
        }
    },
    created () {
        this.PushInfoByUid()
    },
    methods: {
        PushInfoByUid () {
            let _this = this
            _this.userInfo = {}
            findPushInfoByUid({
                uid: this.leftInfo.uid
            }).then(result => {
                _this.userInfo = result.data.Body
            }).catch(err => {
                console.log(err)
            })
        },
        // 路由跳转路径拼接
        routerPath (path) {
            return this.$route.matched[1].path + '/' + path
        },
        // 直接进行路由跳转路径
        routerPush (path) {
            this.$router.push(this.$route.matched[1].path + '/' + path)
        }
    },
    computed: {
        ...mapGetters(['leftInfo'])
    },
    watch: {
        leftInfo () {
            this.PushInfoByUid()
        }
    }
}
</script>
